import {
    PieChartOutlined,
    HomeOutlined,
    UserOutlined,
    FileAddOutlined,
    BarsOutlined,
    LineChartOutlined,
    EditTwoTone,
    EditFilled,
    ExportOutlined,
    EnvironmentOutlined,
    EnvironmentTwoTone,
    HomeTwoTone,
    AppstoreTwoTone,
    PieChartTwoTone,
    TagTwoTone,
    SnippetsTwoTone,
    FileTwoTone,
    TeamOutlined,
    SendOutlined,
    MediumSquareFilled,
    StarOutlined,
    PlusSquareOutlined
} from '@ant-design/icons';

import User from '../pages/user/User';
import Admin from '../pages/user/Admin';
import BannerIndex from '../pages/banner/Index';
import BannerAdd from '../pages/banner/Add';
import ProList from '../pages/pro/ProList';
import RecommendList from '../pages/pro/RecommendList';
import Echarts from '../pages/data/Echarts';
import Editor from '../pages/editor/Index';
import Md from '../pages/editor/Md';
import Import from '../pages/excel/Import';
import Export from '../pages/excel/Export';
import Gd from '../pages/map/Gd';
import Bd from '../pages/map/Bd';
import Home from '../Home';

const menus = [
    {
        label: '系统首页',
        key: '/',
        icon: <HomeTwoTone />,
        children: [
            {
                label: '首页',
                key: 'home',
                icon: <HomeOutlined />,
                element: <Home />
            }
        ]
    },
    {
        label: '账号管理',
        key: '/admin',
        icon: <TagTwoTone />,
        children: [
            {
                label: '用户列表',
                key: 'user/list',
                icon: <TeamOutlined />,
                element: <User />
            },
            {
                label: '管理员列表',
                key: 'admin/list',
                icon: <UserOutlined />,
                element: <Admin />
            }
        ]
    },
    {
        label: '轮播图管理',
        key: '/banner',
        icon: <PieChartTwoTone />,
        children: [{
            label: '轮播图列表',
            key: 'banner/list',
            icon: <PieChartOutlined />,
            element: <BannerIndex />
        },
        {
            label: '添加轮播图',
            key: 'add/banner',
            icon: <PlusSquareOutlined />,
            element: <BannerAdd />
        }]
    },
    {
        label: '商品管理',
        key: '/pro',
        icon: <AppstoreTwoTone />,
        children: [
            {
                label: '商品列表',
                key: 'pro/list',
                icon: <BarsOutlined />,
                element: <ProList />
            },
            {
                label: '推荐列表',
                key: 'recommend/list',
                icon: <StarOutlined />,
                element: <RecommendList />
            }

        ]
    },
    {
        label: '数据管理',
        key: '/data',
        icon: <SnippetsTwoTone />,
        children: [
            {
                label: '数据列表',
                key: 'data/echarts',
                icon: <LineChartOutlined />,
                element: <Echarts />
            }
        ]
    },
    {
        label: '编辑器管理',
        key: '/editor',
        icon: <EditTwoTone />,
        children: [
            {
                label: '富文本编辑器',
                key: 'editor/index',
                icon: <EditFilled />,
                element: <Editor />
            },
            {
                label: 'MD编辑器',
                key: 'editor/md',
                icon: <MediumSquareFilled />,
                element: <Md />
            }

        ]
    },
    {
        label: '文件管理',
        key: '/excel',
        icon: <FileTwoTone />,
        children: [
            {
                label: '文件导入',
                key: 'excel/import',
                icon: <FileAddOutlined />,
                element: <Import />
            },
            {
                label: '文件导出',
                key: 'excel/export',
                icon: <ExportOutlined />,
                element: <Export />
            }

        ]
    },
    {
        label: '地图管理',
        key: '/map',
        icon: <EnvironmentTwoTone />,
        children: [
            {
                label: '高德地图',
                key: 'map/gd',
                icon: <SendOutlined />,
                element: <Gd />
            },
            {
                label: '百度地图',
                key: 'map/bd',
                icon: <EnvironmentOutlined />,
                element: <Bd />
            }

        ]
    }
]

export default menus;